str1 = 'Hello World'
# while遍历
i = 0
while i < len(str1):
    print(str1[i])
    i += 1

print('==' * 20)

# for遍历
for char in str1:
    print(char)